import { Tab, Tabs } from "@nextui-org/react"
import TableView from "../../TableView"
import { STATUS } from ".."

const Production = ({ menuChange, team_id }: { menuChange: (v: STATUS) => void, team_id: number }) => {
    return (
        <>
            <Tabs className={`w-full inline-block`} color="warning" size="sm" variant="solid">
                <Tab key="djjy" title="电机检验">
                    <div className="mydiv">
                        <TableView menuChange={menuChange} dtId={1} team_id={team_id} />
                    </div>
                </Tab>
                <Tab key="cxsx" title="程序烧写" >
                    <div className="mydiv">
                        <TableView menuChange={menuChange} dtId={2} team_id={team_id} />
                    </div>
                </Tab>
                <Tab key="zjcs" title="终检测试" >
                    <div className="mydiv">
                        <TableView menuChange={menuChange} dtId={3} team_id={team_id} />
                    </div>
                </Tab>
            </Tabs>
        </>
    )
}

export default Production